import { merge } from "webpack-merge";
import baseConfig from "./webpack.base.js";
// import MiniCssExtractPlugin from "mini-css-extract-plugin";
// import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer";
// import { CleanWebpackPlugin } from "clean-webpack-plugin";

const proConfig = merge(baseConfig, {
  mode: "production",
  // module: {
  //   rules: [
  //     {
  //       test: /\.(sa|sc|c)ss$/,
  //       use: [MiniCssExtractPlugin.loader, "css-loader"],
  //     },
  //   ],
  // },
  plugins: [
    // new BundleAnalyzerPlugin({ analyzerPort: 8081 }),
  ],
});

export default proConfig;
